package com.ljwm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * BootBaseDemo Created by yunqisong on 2018-05-22.
 * FOR:
 */
@SpringBootApplication(scanBasePackages = {"com.ljwm.*"})
@MapperScan(value = {"com.ljwm.mapper*"})                           // 定义mapper，给Mybatis去实现代理类
@EnableAspectJAutoProxy(proxyTargetClass = true)                    // 允许使用自定义JDK代理切面
@EnableTransactionManagement                                        // 开启事务
@ServletComponentScan
public class Application {


    public static void main(String[] args) {

        SpringApplication.run(Application.class, args);
    }
}
